From: Florian Müllner Date: Sat, 29 Jun 2024 19:21:29 +0000 (+0200) Subject: popupMenu: Center-align switches X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~226^2^2~49 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=beb34eb1051fc28ac5975f4a60b9e3f13a9d2fe7;p=gnome-shell.git popupMenu: Center-align switches The default align of FILL was fine with the asset-based switches, as the image would still keep its fixed height. But after the switch to a pure CSS implementation, the alignment now results in stretched switches. Fix this by explicitly center-aligning the widget. Close: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7745 Part-of: --- diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index d502a7b9e..b6ad54508 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -344,6 +344,7 @@ export const Switch = GObject.registerClass({ super._init({ style_class: 'toggle-switch', accessible_role: Atk.Role.CHECK_BOX, + y_align: Clutter.ActorAlign.CENTER, track_hover: true, reactive: true, });